package pers.fulsun.demo.springcloud.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//指向注册名为springcloud-client2的服务
@FeignClient(value = "springcloud-client2", name = "springcloud-client2")
public interface Client2FeignIntercept {
    //指向springcloud-client2中接口路径为/addUserTotal的POST接口
    @PostMapping("/addUserTotal")
    Boolean addUser(@RequestParam String name);
}
